import request from '@/utils/request'
// 获取品牌数据
export const reqTradeMarkList = (page, limit) => request({ url: `/admin/product/baseTrademark/${page}/${limit}`, method: 'get' })
// 添加/修改品牌数据
export const reqAddOrUpdateTradMark = (tradeMark) => {
  if (tradeMark.id) {
    return request({url: '/admin/product/baseTrademark/update', method: 'put', data: tradeMark})
  } else {
    return request({url: '/admin/product/baseTrademark/save', method: 'post', data: tradeMark})
  }
}
// 删除品牌数据
export const reqDeleteTradeMark = (id) => request({url: `/admin/product/baseTrademark/remove/${id}`, method: 'delete'})